import time
from appium.webdriver.common.appiumby import AppiumBy
from pages.base_page import BasePage


class Visit_customer_page(BasePage):

    CUSTOMER1 = (AppiumBy.XPATH,'(//android.widget.CheckBox[@resource-id="com.topboya.linker:id/cb"])[1]')
    SURE= (AppiumBy.ID,'com.topboya.linker:id/tv_confirm')

    def click_customer1(self):
        time.sleep(2)
        self.click(self.CUSTOMER1)
        time.sleep(2)
        self.click(self.SURE)